From 85f26be98d75498956b04a4b03e1f6c918c840ba Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Tue, 22 Jun 1993 06:59:07 +0000 Subject: [PATCH] * xdisp.c (redisplay_window): Remember to compute end relative to the start of the visible region, too. --- src/xdisp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xdisp.c b/src/xdisp.c index 368fe75b004..33e58eb95f4 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -1079,7 +1079,7 @@ done: start = startp - BEGV; /* I don't think this is guaranteed to be right. For the moment, we'll pretend it is. */ - end = (Z - XINT (w->window_end_pos)); + end = (Z - XINT (w->window_end_pos)) - BEGV; if (end < start) end = start; if (whole < (end - start)) whole = end - start; -- 2.30.2